/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bancoDeDados;

import java.sql.SQLException;
import regraDeNegocio.RNPredio;

/**
 *
 * @author Gean
 */
public class BDPredio {
    
    public void insertBD(RNPredio pred) throws SQLException{
        Conexao c = new Conexao();  
        c.insert("INSERT INTO predio (nomepredio, utilizacao) VALUES ('"+pred.getNome()+"','"+pred.getUtilizacao()+"')");
    }
}
